package com.st.rzs.solr.util;

import java.util.ArrayList;
import java.util.List;

/**
 * 查询Solr返回的对象，对象类型为Ｔ的集合，还包含Solr中符合条件记录总数
 * 
 * @param <T>
 */
public class ResultInfo<T> {

	private List<T> list = new ArrayList<T>();

	private Long total = 0L;

	public List<T> getList() {
		return list;
	}

	public void setList(List<T> list) {
		this.list = list;
	}

	public Long getTotal() {
		return total;
	}

	public void setTotal(Long total) {
		this.total = total;
	}

	@Override
	public String toString() {
		return "ResultInfo [list=" + list + ", total=" + total + "]";
	}

}
